#pragma once
#include "uxtheme.h" 
#pragma comment( lib, "uxtheme.lib" )
#include "vector"
using namespace std;


// CTabSheet
#define MAX_PAGES 1000
#define ETDT_ENABLETAB              (ETDT_ENABLE | \
	ETDT_USETABTEXTURE)
struct pages
{
	CDialog *m_pages;
	UINT m_IDD;
	CString m_title;
};

class CTabSheet : public CTabCtrl
{
	DECLARE_DYNAMIC(CTabSheet)

public:
	CTabSheet();
	virtual ~CTabSheet();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnTcnSelchange(NMHDR *pNMHDR, LRESULT *pResult);
	BOOL DeletePage(CString szTitle);
	BOOL DeletePage(UINT site);
	BOOL AddPage(CString szTitle, CDialog * pDialog, UINT ID, bool ShowFirst = true);
	void SetRect(UINT nIdx);
public:
	UINT m_PageNum;
	vector <pages> m_TabPages;
	UINT m_nCurrentPage;
};


